package com.base.hong.repository

import com.base.hong.model.BannerEntity
import com.base.hong.model.LoginEntity
import com.base.hong.model.ProjectListEntity
import com.base.hong.model.ProjectTitleEntity
import com.base.hong.net.NetworkApi
import com.htt.base_library.network.BaseResponse
import okhttp3.RequestBody

/**
 * @author :Hong in  2022/2/22 22:22.
 *         功能描述:
 */
class ZLRepository {

    /**
     *
     */
    suspend fun sendLoginInfo(username: String,password:String): BaseResponse<LoginEntity> {
        return NetworkApi.getInstance().getApi()
            .sendLoginInfo(username, password)
    }

    /**
     *
     */
    suspend fun getBannerInfo(): BaseResponse<List<BannerEntity>> {
        return NetworkApi.getInstance().getApi()
            .getBannerInfo()
    }

    suspend fun getProjectTitle():BaseResponse<ProjectTitleEntity>{
        return NetworkApi.getInstance().getApi().getProjectTitle()
    }
    suspend fun getProjectList(page_size: Int, cid :Int):BaseResponse<ProjectListEntity>{
        return NetworkApi.getInstance().getApi().getProjectList(page_size, cid)
    }
}